package com.anli.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.ClusterServersConfig;
import org.redisson.config.Config;
import org.springframework.context.annotation.Configuration;

/**
 * @author: LI-CI-GAO
 * 作者: licigao
 * 日期: 2021/8/30  15:10
 * 描述:
 */
@Configuration
public class RedisConfig {


    public RedissonClient getRedission(){
        Config config=new Config();
        config.useClusterServers()
                .addNodeAddress("", "")
                .setPassword("");
        RedissonClient redissonClient = Redisson.create(config);
        return redissonClient;

    }

}
